
public class MessageUtile extends Message {

    private String contenu;
    private int estampille;
    private int idProcess;
    private int idProcessGagnant;
    private int nombre;

    public MessageUtile() {
    }

    public MessageUtile(String _contenu, int _estampille, int _idProcess) {
        this.contenu = _contenu;
        this.estampille = _estampille;
        this.idProcess = _idProcess;
    }

    //Message pour Election
    public MessageUtile(String _contenu, int _idProcess, int _idProcessGagnant, int _nombre, int _estampille) {
        this.contenu = _contenu;
        this.idProcess = _idProcess;
        this.nombre = _nombre;
        this.estampille = _estampille;
        this.idProcessGagnant = _idProcessGagnant;
    }

    public String getContenu() {
        return this.contenu;
    }

    public int getEstampille() {
        return this.estampille;
    }

    public int getIdProcess() {
        return this.idProcess;
    }

    public int getIdProcessGagnant() {
        return this.idProcessGagnant;
    }

    public int getNombre() {
        return this.nombre;
    }

    public String toString() {
        return "UTIL : C=" + this.contenu + " E=" + this.estampille + " ID=" + this.idProcess;
    }
}
